
import request from "@/utils/request";
import type { AxiosPromise } from "axios";

export interface pageParams {
    count?:number|string,
    limitNum?:number|string,
}

export interface searchParams extends pageParams {
    keyword?:string,
}

export const getBannerListAPI = (): AxiosPromise => request.get("/banner/list");

export const getRecommendListAPI = (params:pageParams): AxiosPromise => request.get("/pro/recommendlist",{
    params:params,
});



export const getProHotwordAPI = (): AxiosPromise => request.get("/pro/hotword");


export const getSearchListAPI = (params:searchParams): AxiosPromise => request.get("/pro/search",{
    params:params,
});






